package com.itheima.myextends.继承案例_09;

//学生类
public class Student extends Person{
    //成绩
    private double score;

    //无参构造
    public Student() {
    }

    //全参构造
    public Student(String sid, String name, String age, String birthday, double score) {
        super(sid, name, age, birthday);
        this.score = score;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String show(){
        return super.show() + ","+score;
    }
}
